package com.miracle9.game.dao;
import com.miracle9.game.entity.LackParameter;
import org.hibernate.Query;
import org.springframework.stereotype.Repository;

@Repository
public class LackParameterServiceDao extends SqlOperating<LackParameter, Integer>
{
  public LackParameter getLackParameter()
  {
    return (LackParameter)q_CreateSqlFilter("from LackParameter", new Object[0]);
  }
  
  public Integer updateLackParameterInfo(LackParameter lackParameter)
  {
    Query query = q_CreateSql("update LackParameter set gameDiff=:gameDiff,betTime=:betTime,baodanType=:baodanType,baodanTime=:baodanTime,trump=:trump,caiJin=:caiJin", new Object[0]);
    query.setProperties(lackParameter);
    return query.executeUpdate();
  }
}

